package com.magicborrow.activity;

import android.os.Bundle;

import com.magicborrow.R;
import com.magicborrow.views.PickerView;

import java.util.ArrayList;
import java.util.List;

public class TestActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_selector_time_dialog);
        PickerView pv = (PickerView) findViewById(R.id.pv_number);
        PickerView pv2 = (PickerView) findViewById(R.id.pv_string);
        List<String> data = new ArrayList<>();
        for (int i = 0; i < 24; i++) {
            data.add("" + (i + 1));
        }
        List<String> data2 = new ArrayList<>();
        data2.add("时");
        data2.add("天");
        pv2.setData(data2);
        pv.setData(data);
        //  setImmerseLayout();

    }

}
